﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Public;

namespace BLL
{
    public class NguoiDungBLL
    {
        public static bool KiemTraDangNhap(string TenDangNhap, string MatKhau, ref NguoiDungPublic user_login, ref string message)
        {
            return NguoiDungDAL.KiemTraDangNhap(TenDangNhap, MatKhau, ref user_login, ref message);
        }
        public static List<NguoiDungPublic> LoadToanBoNguoiDung()
        {
            return NguoiDungDAL.LoadToanBoNguoiDung();
        }
        //public static void InsertNguoiDung(NguoiDungPublic nd)
        //{
        //    NguoiDungDAL.InsertNguoiDung(nd);
        //}
        public static List<NguoiDungPublic> LoadNguoiDungHienTai()
        {
            return NguoiDungDAL.LoadNguoiDungHienTai();
        }
        public static NguoiDungPublic LoadNguoiDungByMaND(int MaND)
        {
            return NguoiDungDAL.LoadNguoiDungByMaND(MaND);
        }
        public static void UpdateTinhTrang(int MaND, bool TinhTrang)
        {
            NguoiDungDAL.UpdateTinhTrang(MaND, TinhTrang);
        }
        public static List<NguoiDungPublic> LoadNguoiCap()
        {
            return NguoiDungDAL.LoadNguoiCap();
        }
        public static List<NguoiDungPublic> LoadCanBoHoTich()
        {
            return NguoiDungDAL.LoadCanBoHoTich();
        }
        public static List<NguoiDungPublic> LoadChuTich()
        {
            return NguoiDungDAL.LoadChuTich();
        }
        public static int LoadMaND()
        {
            return NguoiDungDAL.LoadMaND();
        }
    }
}
